package com.company.test.collections;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author zhangyan
 * @version $ Id: ConcurrentHashMapDemo.java, v 0.1 2020/9/10 13:04 zhangyan Exp $
 */
public class ConcurrentHashMapDemo {
    public static void main(String[] args) {
        ConcurrentHashMap map = new ConcurrentHashMap();
        map.put("aa","");
        map.put("a1a","");
        map.put("a1a1","");
        map.forEach((k,v)->{
            map.remove(k);
        });
    }
}
